package com.example.myapplication;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.appcompat.app.AppCompatActivity;

public class RoomActivity2 extends BaseActivity implements View.OnClickListener {

    /**
     * 我要直播间
     */
    private Button romm;
    /**
     * 直播间进入
     */
    private Button romms;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_room2);
        initView();
    }

    private void initView() {
        romm = (Button) findViewById(R.id.romm);
        romm.setOnClickListener(this);
        romms = (Button) findViewById(R.id.romms);
        romms.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            default:
                break;
            case R.id.romm:
                startActivity(new Intent(RoomActivity2.this,RoomActivity.class));
                break;
            case R.id.romms:
                startActivity(new Intent(RoomActivity2.this,RoomActivity.class));
                break;
        }
    }
}